package com.dkd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dkd.contract.SupplyContract;
import com.dkd.entity.TaskDetailsEntity;

import java.util.List;

public interface TaskDetailsService extends IService<TaskDetailsEntity>{
    /**
     * 获取工单详情
     * @param taskId
     * @return
     */
    List<TaskDetailsEntity> getByTaskId(long taskId);


    /**
     * 根据工单号构建补货协议
     * @param innerCode
     * @param details
     * @return
     */
    SupplyContract buildSupplyContract(String innerCode,List<TaskDetailsEntity> details);


}
